﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.SiteChannelModel

@{
    ViewBag.Title = "创建频道";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>

@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.Id)
<table class="table-form">
    <tr>
        <td class="must">*</td>
        <td class="label">@Html.LabelFor(model => model.Name)</td>
        <td>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <td class="must">*</td>
        <td class="label">@Html.LabelFor(model => model.SiteId)</td>
        <td>
            @Html.DropDownList("SiteId", "请选择")
            @Html.ValidationMessageFor(model => model.SiteId)
        </td>
    </tr>
    <tr>
        <td class="must">*</td>
        <td class="label">@Html.LabelFor(model => model.Domain)</td>
        <td>
            @Html.EditorFor(model => model.Domain)
            @Html.ValidationMessageFor(model => model.Domain)
        </td>
    </tr>
    <tr>
        <td class="must">*</td>
        <td class="label">@Html.LabelFor(model => model.UrlPattern)</td>
        <td>
            @Html.EditorFor(model => model.UrlPattern)
            @Html.ValidationMessageFor(model => model.UrlPattern)
        </td>
    </tr>
    <tr>
        <td class="must"></td>
        <td class="label">@Html.LabelFor(model => model.Assembly)</td>
        <td>
            @Html.EditorFor(model => model.Assembly)
            @Html.ValidationMessageFor(model => model.Assembly)
        </td>
    </tr>
    <tr>
        <td class="must"></td>
        <td class="label">@Html.LabelFor(model => model.Enable)</td>
        <td>
            @Html.EditorFor(model => model.Enable)
            @Html.ValidationMessageFor(model => model.Enable)
        </td>
    </tr>
    <tr>
        <td class="must"></td>
        <td class="label"></td>
        <td>
            <input type="submit" value="保存" />
            <a href="@Url.Action("Index")" class="lbtn">返回</a>
        </td>
    </tr>
</table>    
}